<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class OASupplier extends Model
{
    protected $table = 'supplier';

    public $timestamps = false;

    const STATUS_WAIT = 0;
    const STATUS_PASS = 1;
    const STATUS_REJECT = 2;

    public static $statusList = [
        self::STATUS_WAIT => '待审核',
        self::STATUS_PASS => '通过',
        self::STATUS_REJECT=>'拒绝'
    ];


    public function getStatusAttribute($val)
    {
        return self::$statusList[$val] ?? self::$statusList[self::STATUS_WAIT];
    }
    


}
